﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Admin.Master" AutoEventWireup="true" CodeBehind="ManageMap.aspx.cs" Inherits="MobiMap.Admin.ManageMap" Title="Untitled Page" %>
<asp:Content ID="ctHead" ContentPlaceHolderID="head" runat="server">
    <title>Manage Map</title>
    
    <script type="text/javascript">
        function ChooseImageMap(valueChecked, imgSrc)
        {   
            document.getElementById("<%= hddChecked.ClientID%>").value = valueChecked;
            document.getElementById("<%=mapImage.ClientID%>").src = "../Image/" + imgSrc + ".png";
        }
    </script>
</asp:Content>

<asp:Content ID="ctMain" ContentPlaceHolderID="mainArea" runat="server">
    <br /><br />
    <img id="mapImage" alt="imgMap" runat="server"
    style="float:left; margin: 10px;"/>
    
    <br />
    <input type="radio" id="google" value="0" onclick="ChooseImageMap(0, 'GoogleMap')"  runat="server"/>
    <label id="lbGoogle" runat="server" onclick="">Ảnh bản đồ của google</label><br />
    <input type="radio" id="local" value="1" onclick="ChooseImageMap(1, 'LocalMap')" runat="server"/>
    <label id="lbLocal" runat="server" onclick="">Ảnh bản đồ scan</label><br />
    <input type="hidden" value="" id="hddChecked" runat="server"/>
    
    <br /><br />
    <asp:Button ID="btnChange" runat="server" Text="Thay đổi" 
        onclick="btnChange_Click" />
</asp:Content>
